package com.sscl.baselibrary.receiver

import android.content.*
import com.sscl.baselibrary.utils.BaseManager

class AutoBootReceiver : BroadcastReceiver() {

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     *
     * 实现方法
     *
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

    override fun onReceive(context: Context, intent: Intent) {
        val action: String? = intent.action
        if (Intent.ACTION_BOOT_COMPLETED == action) {
            BaseManager.onAutoBootReceiverListener?.onAutoBootReceiver(context, intent)
        }
    }
}